/*
 * User: user
 * Date: 26/12/2007
 * Time: 00:18:59
 */
package org.conann;

import com.google.inject.Guice;
import com.google.inject.Injector;

public class Environment {

    private Injector injector = Guice.createInjector(new ManagerModule());
    private static final Environment instance = new Environment();

    public static Environment getInstance() {
        return instance;
    }

    public static <T> T getInstance(Class<T> type) {
        return instance.getInjector().getInstance(type);
    }

    public Injector getInjector() {
        return injector;
    }
}